<?php
class QuestionModel extends RelationModel{
    public $_link = array(
        'User'=>array(
                'mapping_type' =>BELONGS_TO,
                    'class_name'=>'User',
                    'foreign_key'=>'userid',
                    'mapping_name'=>'user',
        ),
        'BaseBrand'=>array(
                'mapping_type' =>BELONGS_TO,
                    'class_name'=>'BaseBrand',
                    'foreign_key'=>'brand_id',
                    'mapping_name'=>'brand',
        ),
        'BaseCategory'=>array(
                'mapping_type' =>BELONGS_TO,
                    'class_name'=>'BaseCategory',
                    'foreign_key'=>'category_id',
                    'mapping_name'=>'category',
        ),
        'BaseCommodity'=>array(
                'mapping_type' =>BELONGS_TO,
                    'class_name'=>'BaseCommodity',
                    'foreign_key'=>'commodity_id',
                    'mapping_name'=>'commodity',
        ),
    );
}
?>
